<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<html>
	<head>
		<title>添加权限组</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="/css/modules.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/modules1.css" type="text/css"
			media="screen" />
		<SCRIPT language=JavaScript src="/js/FoshanRen.js"></SCRIPT>
		<script language="JavaScript">
function checkfm(form){
	if (trim(form.name.value)==""){
		alert("权限组名称不能为空！");
		form.name.focus();
		return false;
	}
	return true;
}
</script>
	</head>
	<body style="background-color:transparent">
	<h2 class="jquery_tab_title">添加角色</h2>
	<div style="padding-top:20px;">
		<s:form action="PrivilegeGroupManage!save" namespace="/control/main"
			method="post" onsubmit="return checkfm(this)">
			<table id="noborder_table" width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="font-size:14px;text-align:right">
						角色名称
						<font color="#FF0000">*</font>
					</td>
					<td>
						<input name="name" size="20" maxlength="20" class="input-small" />
					</td>
				</tr>
				<tr>
					<td style="font-size:14px;text-align:right">
						选择权限
						<font color="#FF0000">*</font>
					</td>
					<td>
						<c:forEach items="${privileges}" var="privilege" varStatus="statu">
							<input type="checkbox" name="privileges"
								value="${privilege.id.model},${privilege.id.privilegeValue}">
		${privilege.name}　<c:if test="${statu.count%4==0}">
								<br />
							</c:if>
						</c:forEach>
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<input type="submit" name="SYS_SET" value=" 确 定 " class="button">
					</td>
				</tr>
			</table>
		</s:form>
		<br>
	</body>
</html>